package com.itheima.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
@Data
public class BaseEntry implements Serializable {
    private static final long serialVersionUID = 161651616516156L;
    /**创建时间*/
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**更新时间*/
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**添加用户时使用*/
    @TableField(value = "create_user",fill = FieldFill.INSERT)
    private String createUser;

    /**更新用户时使用*/
    @TableField(value = "update_user",fill = FieldFill.INSERT_UPDATE)
    private String updateUser;
}
